package com.jxtc.enterprise.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jxtc.enterprise.admin.dto.AdminTenantStatisticDTO;
import com.jxtc.enterprise.common.entity.Tenant;
import org.apache.ibatis.annotations.Param;

public interface TenantMapper extends BaseMapper<Tenant> {


    /**
     * 分页查询携带统计信息的租户数据
     *
     * @param page    分页参数
     * @param keyword 租户名称关键字
     */
    Page<AdminTenantStatisticDTO> pageTenantWithStatisticInfo(
            Page<AdminTenantStatisticDTO> page,
            @Param(value = "keyword") String keyword
    );
}
